import http from "@/utils/http";
import { prefix } from "./config";

/** 获取单号信息-重新开单-预下单 */
export function HTTP_newDbid(data) {
  return http.post(`/SellPos/NewDbid`, data);
}

/** 保存订单 */
export function HTTP_saveOrder(data) {
  return http.post(`/SellPos/PosOrderSave`, data);
}


/** 支付接口 */
export function HTTP_pay(data) {
  return http.post(`/SellPosPAY/Pay`, data);
}

/** 获取订单的支付单 */
export function HTTP_payQuery(data) {
  return http.post(`/SellPosPAY/Query`, data);
}

/** 支付单退款 */
export function HTTP_payRefund(data) {
  return http.post(`/SellPosPAY/Refund`, data);
}


/** 当前操作的销售单 */
export function HTTP_homeOrderId(data) {
  return http.post(`/SellPos/PosOrderId`, data);
}

/** 当前操作的销售单_减免金额操作 */
export function HTTP_homeOrderPriceReduce(data) {
  return http.post(`/SellPos/PosOrderPriceReduce`, data);
}



/** 前台-历史单-列表 */
export function HTTP_pastOrderList(data) {
  return http.post(`/SellPos/PastOrderList`, data);
}
/** 前台-历史单-一条单据信息 */
export function HTTP_pastOrderId(data) {
  return http.post(`/SellPos/PastOrderId`, data);
}

